import 'package:erp/data/http/dio_client.dart';
import 'package:erp/data/model/auth_dto.dart';
import 'package:get/get.dart';

class LoginApi {
  /// 登陆
  static Future login(String username, String password) {
    Map<String, dynamic> params = new Map();
    params["userName"] = username;
    params["userPwd"] = password;
    return Get.find<DioClient>().post("/login", data: params, needTip: false);
  }

  /// 修改密码
  static Future updatePwd(AuthDTO dto) {
    return Get.find<DioClient>().post("/updatePwd", data: dto);
  }
}
